package com.cmcc.fj12580.view;

import com.cmcc.fj12580.utils.Constant;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.webkit.WebView;

public class MWebView extends WebView {

	public MWebView(Context context) {
		super(context);
	}

	public MWebView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MWebView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public boolean onTouchEvent(MotionEvent ev) {
		switch (ev.getAction()) {
		case MotionEvent.ACTION_DOWN:
			Constant.isChildMove = true;
			break;
		case MotionEvent.ACTION_UP:
			Constant.isChildMove = false;
			break;
		}
		return super.onTouchEvent(ev);
	}
}
